<template>
  <div>
    <el-card class="box-card">
      <el-row>
        <!-- 左边角色框 -->
        <el-col :span="6">
          <!-- <img :src="Avator" alt="" /> -->
          <User :image="Avator" :size="size" />
        </el-col>
        <!-- 右边聊天框 -->
        <el-col :span="18">
          <MessageInfo />
        </el-col>
      </el-row>
    </el-card>
  </div>
</template>

<script setup>
import { ref } from 'vue'
import User from './component/leftUser.vue'
import MessageInfo from './component/rightUser.vue'
import Avator from '../../assets/images/微信图片_20240511200720.jpg'

let size = ref(45)
</script>

<style lang="scss" scoped>
.box-card {
  margin-top: 25px;
  height: 100vh;
}
.el-card {
  display: flex;
  flex-direction: column;
}
.el-row {
  display: flex;
  flex-direction: row;
  height: 20rem;
}
.el-col {
  border-right: 1px solid #d6d6d6;
}
</style>
